package syferserver;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.Vector;

public class Server {

    private static int voicePort = 55555;
    private static int msgsPort = 55556;

    public static void main(String[] args) {
//        try {
//            //ServerSocket s = new ServerSocket(voicePort);
//            ServerSocket msgs = new ServerSocket(msgsPort);
//            //Socket socket = null;
//            Socket socket2 = null;
//
//            while (true) {
//
//                //socket = s.accept();
//                socket2 = msgs.accept();
//
//                System.out.println("New client connected: " + socket2.getRemoteSocketAddress());
//
//                CommunicationHandler user = new CommunicationHandler(socket2);
//                user.start();
//
//                ClientHandler handler = new ClientHandler(44444);
//                handler.start();
//            }
//        } catch (IOException ex) {
//        }
        new Channel(44444).start();
    }
}
